{
  LX PreviewSocket module

  Based on modo's SDK lxpreviewsocket.h which is:

  Copyright (c) 2008-2012 Luxology LLC

  Permission is hereby granted, free of charge, to any person obtaining a
  copy of this software and associated documentation files (the "Software"),
  to deal in the Software without restriction, including without limitation
  the rights to use, copy, modify, merge, publish, distribute, sublicense,
  and/or sell copies of the Software, and to permit persons to whom the
  Software is furnished to do so, subject to the following conditions:

  The above copyright notice and this permission notice shall be included in
  all copies or substantial portions of the Software.   Except as contained
  in this notice, the name(s) of the above copyright holders shall not be
  used in advertising or otherwise to promote the sale, use or other dealings
  in this Software without prior written authorization.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  DEALINGS IN THE SOFTWARE.
}

{
  Copyright (c) 2012 David Ballesteros and Jameel Halabi

  This unit is part of the BLAISEmodo wrapper,
  which is licensed under the BSD 2-Clause license (see licenses/license.txt).
}


unit Lx_PreviewSocket;

{$mode objfpc}{$H+}

interface

const
  LXfPREVIEWMSG_REQ                        = $10000000;
  LXfPREVIEWMSG_ACK                        = $20000000;

  LXiPREVIEWMSG_ACK_ERROR                  = LXfPREVIEWMSG_ACK or $01000000;

  // Initial Setup
  LXiPREVIEWMSG_REQ_SET_PROTOCOL           = LXfPREVIEWMSG_REQ or $00001000;
  LXiPREVIEWMSG_ACK_PROTOCOL_SET           = LXfPREVIEWMSG_ACK or $00001000;

  // Image Property Setup
  LXiPREVIEWMSG_REQ_SET_RES                = LXfPREVIEWMSG_REQ or $00002000;
  LXiPREVIEWMSG_ACK_RES_SET                = LXfPREVIEWMSG_ACK or $00002000;

  LXiPREVIEWMSG_REQ_SET_FORMAT             = LXfPREVIEWMSG_REQ or $00002001;
  LXiPREVIEWMSG_ACK_FORMAT_SET             = LXfPREVIEWMSG_ACK or $00002001;

  LXiPREVIEWMSG_REQ_SET_STEREO             = LXfPREVIEWMSG_REQ or $00002002;
  LXiPREVIEWMSG_ACK_STEREO_SET             = LXfPREVIEWMSG_ACK or $00002002;

  LXiPREVIEWMSG_REQ_SET_SAMPLES            = LXfPREVIEWMSG_REQ or $00002003;
  LXiPREVIEWMSG_ACK_SAMPLES_SET            = LXfPREVIEWMSG_ACK or $00002003;

  LXiPREVIEWMSG_REQ_SET_DRAFT              = LXfPREVIEWMSG_REQ or $00002004;
  LXiPREVIEWMSG_ACK_DRAFT_SET              = LXfPREVIEWMSG_ACK or $00002004;

  LXiPREVIEWMSG_REQ_SET_FINAL              = LXfPREVIEWMSG_REQ or $00002005;
  LXiPREVIEWMSG_ACK_FINAL_SET              = LXfPREVIEWMSG_ACK or $00002005;

  LXiPREVIEWMSG_REQ_SET_EXTENDED           = LXfPREVIEWMSG_REQ or $00002006;
  LXiPREVIEWMSG_ACK_EXTENDED_SET           = LXfPREVIEWMSG_ACK or $00002006;

  LXiPREVIEWMSG_REQ_SET_EFFECT             = LXfPREVIEWMSG_REQ or $00002007;
  LXiPREVIEWMSG_ACK_EFFECT_SET             = LXfPREVIEWMSG_ACK or $00002007;

  LXiPREVIEWMSG_REQ_SET_MOUSEPOS           = LXfPREVIEWMSG_REQ or $00002008;
  LXiPREVIEWMSG_ACK_MOUSEPOS_SET           = LXfPREVIEWMSG_ACK or $00002008;

  LXiPREVIEWMSG_REQ_SET_CAMERA             = LXfPREVIEWMSG_REQ or $00002009;
  LXiPREVIEWMSG_ACK_CAMERA_SET             = LXfPREVIEWMSG_ACK or $00002009;

  // Frame Requests
  LXiPREVIEWMSG_REQ_SEND_FULL_FRAME        = LXfPREVIEWMSG_REQ or $00003000;
  LXiPREVIEWMSG_ACK_SEND_FULL_FRAME        = LXfPREVIEWMSG_ACK or $00003000;

  LXiPREVIEWMSG_PREVIEW_UNAVAILABLE        = $00000001;
  LXiPREVIEWMSG_PREVIEW_RGBAFP             = $00000002;
  LXiPREVIEWMSG_PREVIEW_COMPLETE           = $00000100;

  LXiPREVIEWMSG_ACK_SEND_FULL_FRAME_RGB24  =
    LXiPREVIEWMSG_ACK_SEND_FULL_FRAME                                         ;

  LXiPREVIEWMSG_ACK_SEND_FULL_FRAME_RGBAFP =
    LXiPREVIEWMSG_ACK_SEND_FULL_FRAME or LXiPREVIEWMSG_PREVIEW_RGBAFP         ;

  LXiPREVIEWMSG_ACK_FULL_FRAME_UNAVAILABLE =
    LXiPREVIEWMSG_ACK_SEND_FULL_FRAME or LXiPREVIEWMSG_PREVIEW_UNAVAILABLE    ;

  LXiPREVIEWMSG_ACK_FULL_FRAME_DONE        =
    LXiPREVIEWMSG_ACK_FULL_FRAME_UNAVAILABLE or LXiPREVIEWMSG_PREVIEW_COMPLETE;

  // Preview image ID
  LXiPREVIEWMSG_REQ_GET_ID                 = LXfPREVIEWMSG_REQ or $00004000;
  LXiPREVIEWMSG_ACK_ID_GET                 = LXfPREVIEWMSG_ACK or $00004000;

implementation

end.

